package com.hyou.codemaker.db.pojo;

import com.hyou.codemaker.common.bean.BaseBean;

/**
 * 从数据库中查询得到的数据列的信息
 * 
 * @author FengChangshuo
 * @version 1.0.0 2017年6月26日 下午5:07:16 created
 */
public class ResultColumnsBean extends BaseBean {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -5274068611759714257L;

    /**
     * Schema名称
     */
    private String tableSchema;

    /**
     * 表名
     */
    private String tableName;
    
    /**
     * 列名
     */
    private String columnName;
    
    /**
     * 列顺序
     */
    private String ordinalPosition;
    
    /**
     * 数据类型(例如：bigint)
     */
    private String dataType;
    
    /**
     * 数据类型(例如：bigint(20))
     */
    private String columnType;
    
    /**
     * 列注释
     */
    private String columnComment;
    
    /**
     * 是否允许空. NO : 不允许空
     */
    private String nullable;
    
    /**
     * 字段长度。 Varchar字段类型有效。
     */
    private Integer characterMaximumLength;
    
    /**
     * 整数精度。(int\bigint\decimal字段类型有效)
     */
    private Integer numberPrecision;
    
    /**
     * 小数精度。(int\bigint\decimal字段类型有效)
     */
    private Integer numberScale;

    public String getTableSchema() {
        return tableSchema;
    }

    public void setTableSchema(String tableSchema) {
        this.tableSchema = tableSchema;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getOrdinalPosition() {
        return ordinalPosition;
    }

    public void setOrdinalPosition(String ordinalPosition) {
        this.ordinalPosition = ordinalPosition;
    }

    /**
     * @return 数据类型(例如：bigint)
     */
    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public Integer getCharacterMaximumLength() {
        return characterMaximumLength;
    }

    public void setCharacterMaximumLength(Integer characterMaximumLength) {
        this.characterMaximumLength = characterMaximumLength;
    }

    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public String getNullable() {
        return this.nullable;
    }

    public void setNullable(String nullable) {
        this.nullable = nullable;
    }

    public Integer getNumberPrecision() {
        return this.numberPrecision;
    }

    public void setNumberPrecision(Integer numberPrecision) {
        this.numberPrecision = numberPrecision;
    }

    public Integer getNumberScale() {
        return this.numberScale;
    }

    public void setNumberScale(Integer numberScale) {
        this.numberScale = numberScale;
    }

}
